home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / ADD.HDR < prev    next >
Text File  |  1994-04-25  |  1KB  |  48 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _Add( cNum1, cNum2 ) --> cString
  8.  
  9. PARAMETERS:
  10.  
  11. cNum1: First Number String
  12. cNum2: Second Number String to add to first
  13.  
  14. SHORT:
  15.  
  16. Perform addition up to 64,000 digits (I swear I'm not making this up!)
  17.  
  18. DESCRIPTION:
  19.  
  20. _Add() performs addition on STRINGS that represent numbers to add together.
  21. _add() is used primarily to perform addition on numbers that exceed 16 digit
  22. precision.
  23.  
  24. NOTE:
  25.  
  26. For additions that DO exceed 16 digits, you cannot convert the results to
  27. numeric because you will lose digits in the conversion.
  28.  
  29. Also, number strings must represent positive whole numbers.  _Add() will not
  30. handle addition of negative numbers, or numbers with decimal fractions.
  31.  
  32. See also, _Mult() which does similar things with multiplication.
  33.  
  34. EXAMPLE:
  35.  
  36. ? _Add('11111111111111111111','22222222222222222222')
  37.  
  38. Result:   "33333333333333333333"
  39.  
  40. Numbers do not have to exceed 16 digits in order to use _Add()
  41.  
  42. ? _Add('99','1')
  43.  
  44. Result: "100"
  45.  
  46.  
  47. ******************************************************************************/
  48.